import Vue from 'vue'
import App from './App.vue'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import Vuetify from 'vuetify'
import vuetify from '@/plugins/vuetify'
import store from './store'

Vue.use(Vuetify)
Vue.use(axios)
Vue.use(Vuex)
Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.config.productionTip = false

// router.beforeEach((to, from, next) => {

//     if (to.path == '/') {
//         next('/blog/index')
//     } else {
//         next();
//     }

// })
Vue.prototype.$_user_islogin = false
Vue.prototype.$_admin_islogin = false
Vue.prototype.$_admin_username = ""
new Vue({
    store,
    vuetify,
    router,
    render: h => h(App),
}).$mount('#app')